package com.report.conversion.utils;

/**
 * 功能描述
 *
 * @author: kevin wu
 * @date: 2023年03月15日 17:37
 */
public class Test {

    public static void main(String[] args) {
        String sql = "select id userCode,name userName,age userAge,email userEmail from user where id= {{userCode}} and test= {{userCode}} ";
        String rkey = "{{userCode}}";
        while (sql.contains(rkey)){
            System.out.println(sql);
            sql = sql.replace(rkey,"123");
            System.out.println(sql);
        }
        System.out.println(sql);
    }
}
